import request from '@/utils/request'

// 已审核信息查询 -1：未通过 1：通过
export function getAllAuditedSupplierInfoByConditions(data) {
  return request({
    url: '/manager/getAllAuditedSupplierInfoByConditions',
    method: 'get',
    params: data
  })
}

// 未审核信息查询
export function getAllUnreviewedSupplierInfoByConditions(data) {
  return request({
    url: '/manager/getAllUnreviewedSupplierInfoByConditions',
    method: 'get',
    params: data
  })
}

// 获取供应商主要信息
export function getSupplierMainInfo(data) {
  return request({
    url: '/manager/getSupplierMainInfo',
    method: 'get',
    params: data
  })
}

// 获取供应商主要信息
export function getSupplierOtherInfo(data) {
  return request({
    url: '/manager/getSupplierOtherInfo',
    method: 'get',
    params: data
  })
}

// 审核供应商
export function checkSupplierInfo(data) {
  return request({
    url: '/manager/checkSupplierInfo',
    method: 'put',
    params: data
  })
}

// 修改供应商分组
export function supplierGrouping(data) {
  return request({
    url: '/manager/supplierGrouping',
    method: 'put',
    data
  })
}

export function deleteSupplierInfo(data) {
  return request({
    url: '/manager/deleteSupplierInfo',
    method: 'delete',
    params: data
  })
}


